﻿//Created by Action Script Viewer - http://www.buraks.com/asv
package Classes {
    import flash.geom.*;

    public class DisplayLocationsDefinition {

        private var m_mapDisplayLocations:Array;
        private var m_dialogDisplayLocations:Array;

        public function DisplayLocationsDefinition(){
            this.m_mapDisplayLocations = [];
            this.m_dialogDisplayLocations = [];
        }
        public function get mapDisplayLocations():Array{
            return (this.m_mapDisplayLocations);
        }
        public function get dialogDisplayLocations():Array{
            return (this.m_dialogDisplayLocations);
        }
        public function loadObject(_arg1:XML):void{
            var _local3:XML;
            var _local4:String;
            var _local2:XMLList = _arg1.child("location");
            for each (_local3 in _local2) {
                _local4 = _local3.attribute("id")[0];
                if (((_local3.attribute("mapX")) && (_local3.attribute("mapY")))){
                    this.m_mapDisplayLocations[_local4] = new Point(parseInt(_local3.attribute("mapX")), parseInt(_local3.attribute("mapY")));
                };
                if (((_local3.attribute("dialogX")) && (_local3.attribute("dialogY")))){
                    this.m_dialogDisplayLocations[_local4] = new Point(parseInt(_local3.attribute("dialogX")), parseInt(_local3.attribute("dialogY")));
                };
            };
        }
        public function getMapDisplayLocationById(_arg1:String):Point{
            return (this.m_mapDisplayLocations[_arg1]);
        }
        public function getDialogDisplayLocationById(_arg1:String):Point{
            return (this.m_dialogDisplayLocations[_arg1]);
        }

    }
}//package Classes 
